#ifndef __ITEM_H__
#define __ITEM_H__
#include "cocos2d.h"
#include "gofgame/dungeonkeeper/game/Hero.h"
#include "gofgame/dungeonkeeper/game/Unit.h"
#include <string>

namespace gofgame {
	namespace dungeonkeeper {
		namespace game {
			class Item :public cocos2d::CCNode{
			public:
				int id;
				int price;
			public:
				cocos2d::CCSprite *texture;
				virtual void useForHero(Hero *hero);
				virtual void useForUnit(Unit *unit);
				std::string *tip;
				virtual void useItem();
				void geted();
				void draw();
			};
		}
	}
}

#endif //__ITEM_H__
